Dinosaur legs work like folding pendulums from knee down. The pendulum of one leg is extended while pushing off from the ground, and folded while the other leg pushes off. If you watched a dinosaur from the side view, its feet would seem to follow a circular path. Ostriches today run this way.